package com.ruov.api.controller.common;

import com.ruov.api.service.IUserService;
import com.ruov.common.annotation.Anonymous;
import com.ruov.common.constant.Constants;
import com.ruov.common.core.domain.AjaxResult;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author wjsmc
 * @date 2025/4/25 13:41
 * @description
 **/
@RestController
@Anonymous
@AllArgsConstructor
public class LoginController {

    private final IUserService iUserService;

    @PostMapping("/login")
    public AjaxResult login() {
        AjaxResult ajax = AjaxResult.success();
        // 生成令牌
        ajax.put(Constants.TOKEN, "");
        return ajax;
    }

}
